aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/thematique/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-24 16:44:29 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-24 16:44:29 +0200
commit1e982fb02a9967e0efdc76c93a44798a9f2dcb43 (patch)
treeb9a526ade81feee20cf18404e2a7053ccff6c999 /src/pages/thematique/[slug].tsx
parentc347190a4307c172d15dac156da86567098035f6 (diff)
chore: add a search form when posts list prints no results
Diffstat (limited to 'src/pages/thematique/[slug].tsx')
-rw-r--r--src/pages/thematique/[slug].tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx
index 0519731..7aa6c1c 100644
--- a/src/pages/thematique/[slug].tsx
+++ b/src/pages/thematique/[slug].tsx
@@ -147,10 +147,11 @@ const ThematicPage: NextPageWithLayout<ThematicPageProps> = ({
</Heading>
<PostsList
baseUrl="/thematique/page/"
+ byYear={true}
posts={getPostsWithUrl(articles)}
- total={articles.length}
+ searchPage="/recherche/"
titleLevel={3}
- byYear={true}
+ total={articles.length}
/>
</>
)}